<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {
	function __construct()
	{
		parent::__construct();
	}
	//change language
	public function changL(){
		$this->load->model('index');
		$this->index->changeL($_POST);
	}
 	//首页
	public function index()
	{
		$this->load->model('index');//保留
		$this->index->m_index();

		$this->load->view('index_page');
	}
	//公司简介
	public function about()
	{
		$this->load->model('about');
 		$this->about->m_about();
		$this->load->view('about_page');
	}
	//课程设置
	public function course()
	{
		$this->load->model('course');
		$this->course->m_course();
		$this->load->view('course_page');
	}
	//汉语知识
	public function cnKnowledge()
	{
		$this->load->model('cnKnowledge');
		$this->cnKnowledge->m_cnknowledge();
		$this->load->view('cnknowledge_page');
	}
	//联系我们
	public function contact()
	{
		$this->load->model('contact');
		$this->contact->m_contact();
		$this->load->view('contact_page');
	}
}
